NSWindow setFrame | setPosition on the screen?

Your window location is "jumping" because you are not doing any bounds checking to determine that the calculated new origin is within the screen bounds.

Your window location is "jumping" because you are not doing any bounds checking to determine that the calculated new origin is within the screen bounds. The class NSScreen will give you details of the screen(s), for each on you cant get its frame. Now you need to decide how you want a window origin to move; e.g.To the screen edge and no further, onto an adjacent screen if there is one, wrapping (off right means come on left), etc. The choice will depend on your application.

Armed with the screen frame(s) and the movement algorithm you can calculate your new origin.

NSWindowController setShouldCascadeWindows:NO this is what I was looking , thanks – Rohan Feb 26 at 12:28.

NSWindowController setShouldCascadeWindows:NO By setting this, its working, now all the notification drawing at the top right corner of the screen, Thanks.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions